﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using LardonPokerSimulator.Model.Deck;

namespace LardonPokerSimulatorTest.Model.Deck
{
    [TestClass]
    public class TestCard
    {
        [TestMethod]
        public void TestNumber()
        {
            short number = 5;
            Card c = new Card(number,Suit.Clubs);
            Assert.AreEqual(c.Number, number);
        }

        [TestMethod]
        public void TestSuit()
        {
            String suitExpected = "Clubs";
            Card c = new Card(5, Suit.Clubs);
            Assert.AreEqual(c.Suit, suitExpected);
        }

        [TestMethod]
        public void TestIsUsed()
        {
            Card c = new Card(0, Suit.Diamons);
            c.isUsed = true;

            Assert.IsTrue(c.IsUsed);
        }
    }
}
